import request from '@/utils/request'
import { encryptionData } from '@/utils/com'
import Qs from 'qs'

/* 获取工地管理信息列表 */
export function getBuildList(data) {
  return request({
    url: '/jcdGys/house/page',
    method: 'get',
    headers: encryptionData(data, '/house/page'),
    params: data
  })
}

// 搜索查询
export function searchList(data, id) {
  return request({
    url: `/jcdGys/house/get/${id}`,
    method: 'get',
    headers: encryptionData(data, `/house/get/${id}`),
    params: data
  })
}

// 删除
export function deleteList(data, id) {
  return request({
    url: `/jcdGys/house/delete/${id}`,
    method: 'DELETE',
    headers: encryptionData(data, `/house/delete/${id}`),

  })
}

/* 工地管理-获取工地详情信息 */
export function getBuildDetail(data) {
  return request({
    url: '/jcdGys/getBuildDetail',
    method: 'get',
    headers: encryptionData(data, '/getBuildDetail'),
    params: data
  })
}
